package com.lulufind.lulu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lulufind.lulu.model.DemandUserOrder;
import com.lulufind.lulu.vo.DemandOrderInfoVO;

public interface DemandUserOrderMapper {

	public int save(DemandUserOrder demandUserOrder);
	public int updateStatus(@Param("orderId")int orderId, @Param("orderStatus")int orderStatus);
	public int updateComment(@Param("orderId")int orderId, @Param("orderComment") String orderComment);
	
	public Integer findPriceById(@Param("orderId")int orderId);
	
	public Integer findCompleteOrderNum(@Param("userId")int userId);
	
	public DemandOrderInfoVO findOrderInfo(@Param("orderId")int orderId);
	public List<DemandOrderInfoVO> findOrderInfoByAidUser(@Param("userId")int userId, @Param("start")int start, @Param("num")int num);
	public List<DemandOrderInfoVO> findOrderInfoByDemandUser(@Param("userId")int userId, @Param("start")int start, @Param("num")int num);
}
